import { Directive } from '@angular/core';
import { mobileValidate } from '../validators/formsValidators';
import { NG_VALIDATORS } from '@angular/forms';

@Directive({
  selector: '[mobile]',
  providers:[{provide:NG_VALIDATORS,useValue:mobileValidate,multi:true}]
})
export class MobileValidatorDirective {

  constructor() { }

}
